﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.Text;

namespace mds.DFSService
{
     [DataContract]
    public  class DistributedFile
    {
        [DataMember]
        public string FileName
        {
            get;
            set;
        }
        [DataMember]
        public int FileSize
        {
            get;
            set;
        }
        [DataMember]
        public string KeySpace
        {
            get;
            set;
        }
        [DataMember]
        public Guid Id
        {
            get;
            set;
        }
         /// <summary>
         /// 文件后缀名
         /// </summary>
        [DataMember]
        public string FileSuffix
        {
            get;
            set;
        }
         /// <summary>
         /// 文件类型扩展
         /// </summary>
        [DataMember]
        public string FileExtension
        {
            get;
            set;
        }
        [DataMember]
        public byte[] FileData
        {
            get;
            set;
        }

        public string FileFullName
        {
            get
            {
                return FileName + "." + FileSuffix;
            }
        }
    }
}
